<%@ include file="/taglibs.jsp"%>

<fmt:message key="date.format" var="df" scope="page"/>

<head>
	<title><fmt:message key="fileList.title"/></title>
</head>

<s:set name="files" value="files" scope="request"/>
<s:form name="searchByFieldForm" action="searchByField" method="post">
<s:select key="file.field" name="fieldId" list="fields" listKey="id" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select>

<tr>
	<td><s:submit cssClass="button" name="statistic" value="%{getText('button.search.title')}" theme="simple" onclick="this.blur()"></s:submit></td>
	<td>
        &nbsp;
    </td>
</tr>
</s:form>

<s:set var="item_name" value="%{getText('file.item_name')}" scope="page"></s:set>
<s:set var="items_name" value="%{getText('file.items_name')}" scope="page"></s:set>
<display:table name="files" class="table" requestURI="" id="fileList" export="true" pagesize="10" >
	<display:setProperty name="paging.banner.item_name" value="${item_name}"/>
	<display:setProperty name="paging.banner.items_name" value="${items_name}"/>
    <display:column property="[0]" sortable="true" media="html" titleKey="file.fileName" paramId="id" >
    </display:column>
	<s:iterator status="stat" var="var" value="nameIdProcessStatus">
	    <display:column value="${fileList[stat.count]}" sortable="true" title="${fileList[10+stat.index]}" escapeXml="true">
	    </display:column>
	</s:iterator>
</display:table>
